package com.test.mapper;

import com.test.pojo.Food;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author suxuexia
 * @create 2019-09-25 16:12
 */
@Repository
public interface FoodMapper {
    List<Food> getAllFoodList();

    int updateFood(Food food);

    int deleteFood(@Param("foodId") int foodId);

    int addFood(Food food);

    List<Food> serachFood(@Param("foodName") String foodName);

    Food getFoodByID(@Param("foodId") int foodId);
}
